package org.jinghouyu.json.serializer;

import org.jinghouyu.json.core.JsonContext;
import org.jinghouyu.json.core.Serializer;

/**
 * 直接调用对象的toString方法
 * @author jinghouyu
 *
 */
public class DirectSerializer implements Serializer<Object> {

	public static final Serializer<Object> SERIALIZER = new DirectSerializer();
	
	public void serialize(JsonContext context, Object value) {
		context.context(value.toString());
	}
}
